<template>
  <div class="index">
    <!--轮播分類-->
    <div class="hero-banner">
      <div class="slider-banner banner">
        <client-only>
          <div v-swiper:mySwiper="swiperOption">
            <div class="swiper-wrapper">
              <nuxt-link :to="item.url === undefined ? '' : item.url" class="swiper-slide"
                v-for="(item, index) in swiperData" :key="index" v-show="index < 10">
                <img :src="item.image" />
              </nuxt-link>
            </div>
            <div class="swiper-pagination paginationBanner" slot="pagination"></div>
            <div class="swiper-button-prev" slot="pagination"></div>
            <div class="swiper-button-next" slot="pagination"></div>
          </div>
        </client-only>
      </div>
    </div>
    <div class="content-wrapper wrapper_1200">
      <!--秒杀-->
      <div class="seckill acea-row row-middle" v-if="seckillList.length">
        <div class="header">
          <div class="title">限時秒殺</div>
          <div class="timeCurrent">
            <span>{{ currentTime }}</span>点场
          </div>
          <div class="lines"></div>
          <div class="tip">距离結束还剩</div>
          <countDown :is-day="false" :tip-text="' '" :day-text="' '" :hour-text="' : '" :minute-text="' : '"
            :second-text="' '" :datatime="datatime"></countDown>
        </div>
        <div class="seckillList">
          <div v-swiper:myScroll="swiperScroll">
            <div class="swiper-wrapper">
              <div class="swiper-slide item" v-for="(item, index) in seckillList" :key="index">
                <div class="picTxt" @click="
                  goSeckillDetail(
                    item.id,
                    item.product_id,
                    datatime,
                    dataStatus
                  )
                  ">
                  <div class="pictrue"><img :src="item.image" /></div>
                  <div class="name line1">{{ item.title }}</div>
                  <div class="money">
                    <span class="font-color">HK${{ item.price }}</span><span class="y_money">HK${{ item.ot_price
                    }}</span>
                  </div>
                </div>
              </div>
            </div>
            <div class="swiper-button-prev" slot="pagination"></div>
            <div class="swiper-button-next" slot="pagination"></div>
          </div>
        </div>
      </div>
    </div>
    <!--精品推薦-->
    <div class="boutique" v-if="boutiqueTwo.length">
      <div class="publicTitle acea-row ">
        <div class="title acea-row row-middle">
          <div class="pictrue">
            <img src="../assets/images/boutiqueTitle.png" />
          </div>
          <div>诚意推薦 品质商品</div>
        </div>
        <nuxt-link :to="{ path: '/goods_list', query: { type: 1 } }" class="more">
          更多<span class="iconfont icon-you"></span>
        </nuxt-link>
      </div>
      <div class="list acea-row row-middle">
        <div class="oneItem acea-row row-between" @click="goDetail(boutiqueOne)">
          <div class="text">
            <div class="name line2">{{ boutiqueOne.store_name }}</div>
            <div class="info line1">{{ boutiqueOne.store_info }}</div>
            <div class="money">
              <span class="font-color">HK${{ boutiqueOne.price }}</span><span class="y_money">HK${{
                boutiqueOne.ot_price
              }}</span>
            </div>
          </div>
          <div class="pictrue">
            <img :src="boutiqueOne.image" v-if="boutiqueOne.image" />
            <img src="~assets/images/no_goods.jpg" alt="" v-else />
          </div>
        </div>
        <div class="item" v-for="(item, index) in boutiqueTwo" :key="index" @click="goDetail(item)">
          <div class="name line1">{{ item.store_name }}</div>
          <div class="font-color">HK${{ item.price }}</div>
          <div class="y_money">HK${{ item.ot_price }}</div>
          <div class="pictrue">
            <img :src="item.image" v-if="item.image" />
            <img src="~assets/images/no_goods.jpg" alt="" v-else />
          </div>
        </div>
      </div>
    </div>
    <!--首發新品-->
    <div class="newGoods" v-if="newGoods.length">
      <div class="publicTitle acea-row ">
        <div class="title acea-row row-middle">
          <div class="pictrue">
            <img src="../assets/images/newsTitle.png" />
          </div>
          <div>永远好奇 永远年輕</div>
        </div>
        <nuxt-link :to="{ path: '/goods_list', query: { type: 3 } }" class="more">
          更多<span class="iconfont icon-you"></span>
        </nuxt-link>
      </div>
      <div class="list acea-row row-middle">
        <div class="item" v-for="(item, index) in newGoods" @click="goDetail(item)" :key="index">
          <div class="pictrue">
            <img :src="item.image" v-if="item.image" />
            <img src="~assets/images/no_goods.jpg" alt="" v-else />
          </div>
          <div class="name line1">{{ item.store_name }}</div>
          <div class="money line1">
            <span class="label">優惠價</span>
            <span class="font-color">HK${{ item.price }}</span>
            <span class="y_money">HK${{ item.ot_price }}</span>
          </div>
          <div class="stock">已抢 {{ item.sales }}{{ item.unit_name }}</div>
        </div>
      </div>
    </div>


    <!--分類-->
    <div class="classify">
      <div class="container">
        <div class="list" v-for="(item, index) in classifyList" :key="index">
          <!--推广横幅 - 热销商品-->
          <div class="promotion-banner" v-if="index === 0 && item.big_pic">
            <div class="wrapper_1200">
              <div class="banner-item">
                <nuxt-link :to="{
                  path: '/goods_cate',
                  query: { cid: item.id, cidIndex: index }
                }" class="banner-link">
                  <div class="banner-image">
                    <img :src="item.big_pic" />
                  </div>
                  <div class="banner-content">
                    <h3>{{ item.cate_name }}</h3>
                    <div class="banner-text">
                      <p>年度銷冠沙發 萬組家庭見證品質</p>
                      <p>北歐風模塊沙發 自由組合限時特價</p>
                      <p>国际认证环保材质 居家健康首选</p>
                      <p>全馆家具限时特惠 精选品牌滿減</p>
                    </div>
                    <span class="shop-btn">立即選購</span>
                  </div>
                </nuxt-link>
              </div>
            </div>
          </div>
          <!--推广横幅 - 全部商品-->
          <div class="promotion-banner" v-if="index === 1 && item.big_pic">
            <div class="wrapper_1200">
              <div class="banner-item">
                <nuxt-link :to="{
                  path: '/goods_cate',
                  query: { cid: item.id, cidIndex: index }
                }" class="banner-link">
                  <div class="banner-content">
                    <h3>{{ item.cate_name }}</h3>
                    <div class="banner-text">
                      <p>万件商品一站购足 满足所有家具需求</p>
                      <p>从客厅到卧室 完整您的居家配置</p>
                      <p>大小户型都适合 精选空间解决方案</p>
                      <p>多种风格任您挑选 打造梦想家园</p>
                    </div>
                    <span class="shop-btn">立即選購</span>
                  </div>
                  <div class="banner-image">
                    <img :src="item.big_pic" />
                  </div>
                </nuxt-link>
              </div>
            </div>
          </div>

          <div class="title acea-row ">
            <div class="name">{{ item.cate_name }}</div>
            <nuxt-link :to="{
              path: '/goods_cate',
              query: { cid: item.id, cidIndex: index }
            }" class="more">
              更多
            </nuxt-link>
          </div>
          <div class="acea-row">
            <ProductCard v-for="(itemn, indexn) in item.productList" :key="indexn" :product="itemn" @click="goDetail" />
          </div>
        </div>
      </div>
      <div class="loadingicon acea-row row-center-wrapper" v-if="classifyList.length && classifyList.length >= limit">
        <span class="loading iconfont icon-jiazai" v-if="!pullRefreshss"></span>{{ title }}
      </div>
    </div>
  </div>
</template>

<script>
import countDown from "@/components/countDown";
import ProductCard from "@/components/ProductCard";
export default {
  name: "index",
  auth: false,
  components: {
    countDown,
    ProductCard
  },
  data() {
    return {
      swiperData: [
        {
          image: require('~/assets/swiper/s-bg01.webp'),
          url: '#',
          title: '轮播图1'
        },
        {
          image: require('~/assets/swiper/s-bg02.webp'),
          url: '#',
          title: '轮播图2'
        },
        {
          image: require('~/assets/swiper/s-bg03.webp'),
          url: '#',
          title: '轮播图3'
        }
      ],
      datatime: 0,
      dataStatus: 0,
      currentTime: "00:00",
      seckillList: [],
      boutiqueOne: {},
      boutiqueTwo: [],
      newGoods: [],
      classifyList: [], //初始數據代碼
      pullRefreshss: true,
      page: 1, //代表页面的初始页数
      limit: 3,
      scollY: null, // 离底部距离有多少
      pageTotal: 0, //總页数
      title: "下拉加載更多",
      swiperOption: {
        pagination: {
          el: ".paginationBanner",
          clickable: true
        },
        navigation: {
          nextEl: ".swiper-button-next",
          prevEl: ".swiper-button-prev"
        },
        autoplay: {
          disableOnInteraction: false,
          delay: 5000
        },
        loop: true,
        speed: 1000,
        observer: true,
        observeParents: true
      },
      swiperScroll: {
        navigation: {
          nextEl: ".swiper-button-next",
          prevEl: ".swiper-button-prev"
        },
        freeMode: true,
        freeModeMomentum: false,
        slidesPerView: "auto",
        observer: true,
        observeParents: true
      },
      siteName: "",
      time_id: 0
    };
  },
  async asyncData({ app }) {
    let [seckillMsg, indexMsg] = await Promise.all([
      app.$axios.get("/seckill/index"),
      app.$axios.get("/index")
      // 注释掉轮播图API请求，使用本地图片
      // app.$axios.get("/pc/get_banner")
    ]);
    return {
      seckillTime: seckillMsg.data,
      boutiqueOne: indexMsg.data.info.bastList.length
        ? indexMsg.data.info.bastList.shift()
        : {},
      boutiqueTwo: indexMsg.data.info.bastList,
      newGoods: indexMsg.data.info.firstList,
      // logoUrl: indexMsg.data.logoUrl,
      // swiperData: bannerMsg.data.list, // 使用本地图片替代
      siteName: indexMsg.data.site_name
    };
  },
  fetch({ store }) {
    store.commit("isHeader", true);
    store.commit("isFooter", true);
  },
  head() {
    return {
      title: this.siteName
    };
  },
  created() {
    this.getClassifyList();
    // this.$store.commit('logo', this.logoUrl);
    // this.$cookies.set('logo',this.logoUrl);
  },
  mounted() {
    this.getSeckillIndexTime();
    this.pullRefresh();
    // 确保页面滚动到顶部
    this.$nextTick(() => {
      window.scrollTo(0, 0);
      document.documentElement.scrollTop = 0;
      document.body.scrollTop = 0;
    });
  },
  beforeDestroy() {
    window.onscroll = null;
  },
  methods: {

    getSeckillIndexTime() {
      let seckillTime = this.seckillTime;
      if (seckillTime.seckillTimeIndex < 0) return;
      this.datatime =
        seckillTime.seckillTime[seckillTime.seckillTimeIndex].stop;
      this.dataStatus =
        seckillTime.seckillTime[seckillTime.seckillTimeIndex].status;
      this.currentTime =
        seckillTime.seckillTime[seckillTime.seckillTimeIndex].time;
      this.time_id = seckillTime.seckillTime[seckillTime.seckillTimeIndex].id;
      this.$axios
        .get("/seckill/list/" + this.time_id, {
          page: 1,
          limit: 10,
          type: "index"
        })
        .then(res => {
          this.seckillList = res.data;
        });
    },

    getClassifyList() {
      let _this = this,
        currentPage = { page: this.page, limit: this.limit };
      _this.$axios
        .get("/pc/get_category_product", {
          params: currentPage
        })
        .then(function (res) {
          _this.pageTotal = res.data.count;
          // 请求完成后，把得到的數據拼接到当前dom里面
          _this.classifyList = _this.classifyList.concat(res.data.list);
        })
        .catch(function (err) {
          _this.$message.error(err);
        });
    },
    // 下拉加載ajax
    pullRefresh: function () {
      let _this = this;
      window.onscroll = function () {
        _this.scrollChange();
      };
    },
    scrollChange: function () {
      var _this = this;
      this.scollY =
        this.comsys.getScrollTop() +
        this.comsys.getWindowHeight() -
        this.comsys.getScrollHeight();
      // 把下拉刷新置為false，防止多次请求
      if (this.scollY >= -50) {
        if (this.page > Math.ceil(this.pageTotal / this.limit)) {
          this.title = "已没有更多數據";
          this.pullRefreshss = true;
          return false;
        }
        if (!this.pullRefreshss) {
          return false;
        }
        _this.pullRefreshss = false;
        this.title = "正在加載中....";
        // 加页碼数
        this.page++;
        _this.getClassifyList();
      } else {
        // 其他时候把下拉刷新置為true
        _this.pullRefreshss = true;
        this.title = "下拉加載更多";
      }
    },
    goDetail(item) {
      let path = item.presale
        ? (path = {
          path: "/goods_presell_detail",
          query: {
            id: item.id
          }
        })
        : (path = { path: `/goods_detail/${item.id}` });
      this.$router.push(path);
    },
    goSeckillDetail: function (id, productId, time, status) {
      this.$router.push({
        path: "/goods_seckill_detail",
        query: {
          id: id,
          productId: productId,
          time: time,
          status: status,
          time_id: this.time_id
        }
      });
    }
  }
};
</script>

<style scoped lang="scss">
@import "@/assets/css/variables.scss";

.index {
  background: #fff;

  .hero-banner {
    width: 100vw;
    height: 100vh;
    position: relative;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 20px;

    .banner {
      width: 100%;
      height: 100%;
      overflow: hidden;
      position: relative;

      .swiper-slide {
        width: 100%;
        height: 100%;

        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
      }
    }
  }

  .content-wrapper {
    padding-bottom: 20px;
  }

  .publicTitle {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;

    .title {
      color: #8b8b8b;

      .pictrue {
        width: 110px;
        height: 30px;
        margin-right: 13px;

        img {
          width: 100%;
          height: 100%;
        }
      }
    }

    .more {
      display: inline-flex;
      align-items: center;
      padding: 8px 16px;
      background: #f8f9fa;
      border: 1px solid #dee2e6;
      border-radius: 6px;
      color: #495057;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s ease;
      text-decoration: none;
      white-space: nowrap;

      &:hover {
        background: #e9ecef;
        border-color: #adb5bd;
        color: #212529;
        transform: translateY(-1px);
      }

      .iconfont {
        font-size: 12px;
        margin-left: 4px;
      }
    }
  }

  .seckill {
    margin-top: 30px;

    .header {
      background: url("../assets/images/skillBg.jpg") no-repeat;
      background-size: 100% 100%;
      width: 208px;
      height: 266px;
      color: #fff;
      text-align: center;
      padding: 44px 0;
      font-size: 16px;

      .title {
        font-size: 28px;
        font-weight: bold;
      }

      .timeCurrent {
        margin-top: 20px;

        span {
          font-weight: bold;
        }
      }

      .lines {
        width: 17px;
        height: 2px;
        background-color: #ffffff;
        margin: 10px auto 0 auto;
      }

      .tip {
        margin-top: 10px;
      }

      .time {
        margin-top: 20px;
      }
    }

    .seckillList {
      width: 992px;
      height: 266px;
      background-color: #fff;
      position: relative;

      .item {
        cursor: pointer;
        display: inline-block;
        width: 248px;
        position: relative;
        padding: 21px 0;

        .picTxt {
          width: 164px;
          margin: 0 auto;
        }

        &~.item:before {
          content: " ";
          position: absolute;
          width: 1px;
          height: 98px;
          background-color: #f4f4f4;
          top: 50%;
          margin-top: -49px;
        }

        .pictrue {
          width: 164px;
          height: 164px;
          margin: 0 auto;

          img {
            width: 100%;
            height: 100%;
          }
        }

        .name {
          color: #282828;
          text-align: center;
          width: 164px;
          margin: 10px auto 0 auto;
        }

        .money {
          text-align: center;
          width: 164px;
          margin: 12px auto 0 auto;

          .font-color {
            font-weight: bold;
            font-size: 16px;
          }

          .y_money {
            color: #a3a3a3;
            text-decoration: line-through;
            margin-left: 6px;
          }
        }
      }
    }
  }

  .boutique {
    .list {
      margin: 0px -10px;

      .oneItem {
        padding: 28px;
        width: 590px;
        height: 250px;
        margin: 10px;
        background: url("../assets/images/boutique1.jpg") no-repeat;
        background-size: 100% 100%;
        cursor: pointer;

        &:hover {
          box-shadow: 0 3px 20px rgba(0, 0, 0, 0.06);
        }

        .text {
          width: 310px;

          .name {
            font-size: 18px;
            color: #282828;
          }

          .info {
            font-size: 16px;
            color: #a3a3a3;
            margin-top: 8px;
          }

          .money {
            margin-top: 26px;

            .font-color {
              font-size: 20px;
              font-weight: bold;
            }

            .y_money {
              color: #a3a3a3;
              margin-left: 12px;
              text-decoration: line-through;
            }
          }
        }

        .pictrue {
          width: 194px;
          height: 194px;

          img {
            width: 100%;
            height: 100%;
          }
        }
      }

      .item {
        width: 285px;
        height: 250px;
        margin: 10px;
        background: url("../assets/images/boutique2.jpg") no-repeat;
        background-size: 100% 100%;
        padding: 28px;
        position: relative;
        cursor: pointer;

        &:hover {
          box-shadow: 0 3px 20px rgba(0, 0, 0, 0.06);
        }

        .name {
          font-size: 18px;
        }

        .font-color {
          font-size: 20px;
          font-weight: bold;
          margin-top: 12px;
        }

        .y_money {
          color: #a3a3a3;
          text-decoration: line-through;
          margin-top: 4px;
        }

        .pictrue {
          width: 130px;
          height: 130px;
          position: absolute;
          right: 28px;
          bottom: 28px;

          img {
            width: 100%;
            height: 100%;
          }
        }
      }
    }
  }

  .newGoods {
    .list {
      margin: 0 -10px;

      .item {
        margin: 10px;
        width: 224px;
        height: 320px;
        background-color: #fff;
        padding: 16px 16px 22px 16px;
        cursor: pointer;

        &:hover {
          box-shadow: 0 3px 20px rgba(0, 0, 0, 0.06);
        }

        .pictrue {
          width: 192px;
          height: 192px;

          img {
            width: 100%;
            height: 100%;
          }
        }

        .name {
          margin-top: 12px;
        }

        .money {
          margin-top: 10px;

          .label {
            background: url("../assets/images/label.jpg") no-repeat;
            background-size: 100% 100%;
            width: 45px;
            height: 20px;
            font-size: 12px;
            color: #fff;
            text-align: center;
            line-height: 20px;
            display: inline-block;
          }

          .font-color {
            font-size: 18px;
            font-weight: bold;
            margin-left: 10px;
          }

          .y_money {
            font-size: 12px;
            color: #a3a3a3;
            margin-left: 10px;
            text-decoration: line-through;
          }
        }

        .stock {
          color: #969696;
          font-size: 12px;
          margin-top: 14px;
        }
      }
    }
  }

  .classify {
    padding: 0 min(160px, 8vw);
    margin-bottom: 40px;

    .container {
      width: 100%;
      margin: 0 auto;
    }

    .list {
      margin-top: 40px;
      border-radius: 16px;
      background: #fff;
      padding: 32px;
      transition: all 0.3s ease;

      .title {
        margin-bottom: 24px;
        padding-bottom: 24px;
        display: flex;
        justify-content: space-between;
        align-items: center;

        .name {
          font-size: 32px;
          color: $text-color;
          font-weight: 700;
          letter-spacing: -0.5px;
        }

        .more {
          width: 44px;
          padding: 8px 16px;
          background: #f8f9fa;
          border: 1px solid #dee2e6;
          border-radius: 6px;
          color: #495057;
          font-size: 14px;
          font-weight: 600;
          letter-spacing: 2px;
          text-align: center;
          cursor: pointer;
          transition: all 0.3s ease;
          text-decoration: none;
          grid-column: 4;
          margin-left: auto;

          &:hover {
            background: #e9ecef;
            border-color: #adb5bd;
            color: #212529;
            transform: translateY(-1px);
          }

          .iconfont {
            font-size: 12px;
            margin-left: 4px;
          }
        }
      }

      // 推广横幅样式
      .promotion-banner {
        margin-bottom: 80px;

        .wrapper_1200 {
          width: calc(100vw - 320px);
          max-width: none;
          margin: 0 auto;
          padding: 0;

          @media (max-width: 1520px) {
            width: calc(100vw - 160px);
          }

          @media (max-width: 1200px) {
            width: calc(100vw - 80px);
          }

          @media (max-width: 768px) {
            padding: 0 20px;
          }
        }

        .banner-item {
          display: flex;
          align-items: center;
          height: calc((100vw - 320px) * 0.27);
          min-height: 680px;
          background: #fff;
          overflow: hidden;
          box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

          @media (max-width: 1520px) {
            height: calc((100vw - 160px) * 0.27);
          }

          @media (max-width: 1200px) {
            height: calc((100vw - 80px) * 0.27);
          }
        }

        .banner-link {
          display: flex;
          width: 100%;
          height: 100%;
          text-decoration: none;
          color: inherit;

          .banner-image {
            flex: 0 0 60%;
            height: 100%;

            img {
              width: 100%;
              height: 100%;
              object-fit: cover;
            }
          }

          .banner-content {
            flex: 1;
            padding: calc(2vw + 48px);
            display: flex;
            flex-direction: column;
            justify-content: space-evenly;

            h3 {
              font-size: calc(1.5vw + 16px);
              font-weight: 700;
              color: $text-color;
              margin-bottom: 40px;
              line-height: 1.2;
            }

            .banner-text {
              margin-bottom: 40px;
              display: flex;
              flex-direction: column;
              gap: 20px;
            }

            p {
              font-size: calc(0.8vw + 8px);
              color: #7f8c8d;
              line-height: 1.5;
            }

            .shop-btn {
              display: inline-flex;
              align-items: center;
              justify-content: center;
              padding: calc(0.6vw + 6px) calc(1.2vw + 12px);
              background: $bg-dark;
              color: white;
              border-radius: calc(0.4vw + 4px);
              font-size: calc(0.8vw + 8px);
              font-weight: 600;
              text-decoration: none;
              transition: all 0.3s ease;
              align-self: flex-start;
              cursor: pointer;
              white-space: nowrap;

              &:hover {
                background: #34495e;
                transform: translateY(-2px);
              }
            }
          }

          @media (max-width: 768px) {
            flex-direction: column;

            .banner-image {
              flex: 0 0 200px;
            }

            .banner-content {
              padding: 24px;

              h3 {
                font-size: 24px;
              }

              p {
                font-size: 14px;
                margin-bottom: 20px;
              }
            }
          }
        }
      }

      // 商品卡片樣式已移至ProductCard組件

      // 响应式网格布局
      .acea-row {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem 1.5rem;
        align-items: start;

        @media (max-width: 1200px) {
          grid-template-columns: repeat(3, 1fr);
        }

        @media (max-width: 900px) {
          grid-template-columns: repeat(2, 1fr);
          gap: 1.5rem 1rem;
        }

        @media (max-width: 600px) {
          grid-template-columns: 1fr;
          gap: 1.5rem;
        }
      }
    }
  }
}

.scale-up-hor-left {
  -webkit-animation: scale-up-hor-left 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;
  animation: scale-up-hor-left 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;
}

@-webkit-keyframes scale-up-hor-left {
  0% {
    -webkit-transform: scaleX(0.4);
    transform: scaleX(0.4);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
  }

  100% {
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
  }
}

@keyframes scale-up-hor-left {
  0% {
    -webkit-transform: scaleX(0.4);
    transform: scaleX(0.4);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
  }

  100% {
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
  }
}

.pact::-webkit-scrollbar {
  width: 0 !important;
}

/*IE 10+*/

.pact {
  -ms-overflow-style: none;
}

/*Firefox*/

.pact {
  overflow: -moz-scrollbars-none;
}
</style>
